var express = require("express");
var router = express.Router();

router.use(function (req, res, next) {
  console.log("Time:", Date.now());
  next();
});

router.get("/:name", function (req, res, next) {
  res.send("hello, " + req.params.name);
  res.end()
});
/* GET users listing. */
router.get("/", function (req, res, next) {
  res.send("respond with a resource");
  res.end()
});

module.exports = router;
